 import java.util.Scanner;
 
 public class PP35
 {
    public static void main(String[] args)
    {
       int x1, x2, y1, y2;
       double z1, z2, r1, r2, distance;

       Scanner scan = new Scanner(System.in);
   
       System.out.print("Enter the coefficient of x1: ");
       x1 = scan.nextInt();

       System.out.print("Enter the coefficient of x2: ");
       x2 = scan.nextInt();

       System.out.print("Enter the coefficient of y1: ");
       y1 = scan.nextInt();

       System.out.print("Enter the coefficient of y2: ");
       y2 = scan.nextInt();

       z1 = (x2 - x1);
       z2 = (y2 - y1);
       r1 = Math.pow(z1,2);
       r2 = Math.pow(z2,2);
       distance = Math.pow((r1+r2),(1/2));
      
       System.out.println("distance: " +distance);
     }
 }
